<?php
class App_Zend_Controller_Action extends Zend_Controller_Action
{	
	public function init()
	{
		$this->view->siteName = _SITE_NAME_;
		$this->view->message = array();
		$module = $this->getRequest()->getModuleName();		
		if ($module == 'admin') {
			$themes = _THEMES_DASHBOARD_;
		} else {
			$themes = _THEMES_FRONTPAGE_;
		}
		$baseUrl = _APP_DIR_ . '/' . $module . '/themes/' . $themes;
		$this->view->setBasePath($baseUrl);		
		Zend_Layout::startMvc(array('layout' => 'layout', 'layoutPath' => $baseUrl . '/scripts'));
	}
}